/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;

/**
 *victor fuentes 12298
* yucely beb 12537
* hoja de trabajo 7
* clase generada por netbeans para pruebas unitarias
 */
public class HeapTest {
    
    public HeapTest() {
    }
    
    @BeforeClass
    public static void setUpClass() {
    }
    
    @AfterClass
    public static void tearDownClass() {
    }
    
    @Before
    public void setUp() {
    }
    
    @After
    public void tearDown() {
    }

    /**
     * Test of head method, of class Heap.
     */
    @Test
    public void testHead() {
        System.out.println("head");
        Heap instance = new Heap(1);
        
        Nodo expResult=new Nodo(3);
        instance.add(expResult);
        Nodo result = instance.head();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        //fail("The test case is a prototype.");
    }

    /**
     * Test of getNumero method, of class Heap.
     */
    @Test
    public void testGetNumero() {
        System.out.println("getNumero");
        Heap instance = new Heap(3);
        int expResult = 0;
        int result = instance.getNumero();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        //fail("The test case is a prototype.");
    }

    /**
     * Test of getCaracteres method, of class Heap.
     */
    @Test
    public void testGetCaracteres() {
        System.out.println("getCaracteres");
        Heap instance = new Heap(3);
        int expResult = 3;
        int result = instance.getCaracteres();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        //fail("The test case is a prototype.");
    }

    /**
     * Test of add method, of class Heap.
     */
    @Test
    public void testAdd() {
        System.out.println("add");
        Nodo item = new Nodo(4);
        Heap instance = new Heap(2);
        instance.add(item);
        // TODO review the generated test code and remove the default call to fail.
        //fail("The test case is a prototype.");
    }

    /**
     * Test of retirar method, of class Heap.
     */
    @Test
    public void testRetirar_0args() {
        System.out.println("retirar");
        Heap instance = new Heap(2);
        Nodo expResult = new Nodo(4);
        instance.add(expResult);
        Nodo result = instance.retirar();
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        //fail("The test case is a prototype.");
    }

    /**
     * Test of retirar method, of class Heap.
     */
    @Test
    public void testRetirar_Nodo() {
        System.out.println("retirar");
        Nodo expResult = new Nodo(3);
        Heap instance = new Heap(2);
        instance.add(expResult);
        
        Nodo result = instance.retirar(expResult);
        assertEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        //fail("The test case is a prototype.");
    }
}